package com.demo.facade;

public class TheaterLight {
    // 使用饿汉式
    private static TheaterLight theaterLight = new TheaterLight();

    public static TheaterLight getTheaterLight() {
        return theaterLight;
    }

    public void on() {
        System.out.println(" TheaterLight on ");
    }

    public void off() {
        System.out.println(" TheaterLight off ");
    }

    public void dim() {
        System.out.println(" TheaterLight dim ");
    }

    public void bright() {
        System.out.println(" TheaterLight bright ");
    }
}
